package com.xca.ninedemo.service;

import com.xca.ninedemo.entity.TopNews;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

//http://v.juhe.cn/toutiao/index?type=top&key=APPKEY
public interface TopNewsService {
    @GET("toutiao/index")
    Observable<TopNews> getData(@Query("type") String type , @Query("key") String key);
}
